<?php /* Smarty version Smarty-3.1.12, created on 2013-02-25 12:56:52
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/find_match/modals/myModalSelectMatchMode.tpl" */ ?>
<?php /*%%SmartyHeaderCode:92509798250fc02b104f2f5-71639019%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b2b28f227a3d77a87bb80c82622fe73fd37ef3a9' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/find_match/modals/myModalSelectMatchMode.tpl',
      1 => 1361793406,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '92509798250fc02b104f2f5-71639019',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_50fc02b1050fa8_79928770',
  'variables' => 
  array (
    'modi' => 0,
    'halfCount' => 0,
    'it' => 0,
    'checked' => 0,
    'matchModeCounts' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50fc02b1050fa8_79928770')) {function content_50fc02b1050fa8_79928770($_smarty_tpl) {?><!-- Modal -->

<div id="myModalSelectMatchMode" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalSelectMatchMode" aria-hidden="true">
  <div class="modal-header">
    <h3 id="myModalSelectMatchModeLabel">Select Matchmode</h3>
  </div>
  <div class="modal-body">
  	<div class="control-group">
      <?php if (count($_smarty_tpl->tpl_vars['modi']->value)>0&&is_array($_smarty_tpl->tpl_vars['modi']->value)){?>
      		<div class="controls span2">
          <?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['it']->step = 1;$_smarty_tpl->tpl_vars['it']->total = (int)ceil(($_smarty_tpl->tpl_vars['it']->step > 0 ? $_smarty_tpl->tpl_vars['halfCount']->value+1 - (0) : 0-($_smarty_tpl->tpl_vars['halfCount']->value)+1)/abs($_smarty_tpl->tpl_vars['it']->step));
if ($_smarty_tpl->tpl_vars['it']->total > 0){
for ($_smarty_tpl->tpl_vars['it']->value = 0, $_smarty_tpl->tpl_vars['it']->iteration = 1;$_smarty_tpl->tpl_vars['it']->iteration <= $_smarty_tpl->tpl_vars['it']->total;$_smarty_tpl->tpl_vars['it']->value += $_smarty_tpl->tpl_vars['it']->step, $_smarty_tpl->tpl_vars['it']->iteration++){
$_smarty_tpl->tpl_vars['it']->first = $_smarty_tpl->tpl_vars['it']->iteration == 1;$_smarty_tpl->tpl_vars['it']->last = $_smarty_tpl->tpl_vars['it']->iteration == $_smarty_tpl->tpl_vars['it']->total;?>
          	<?php if ($_COOKIE['singleQueue'][$_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID']]==true){?>
              <?php $_smarty_tpl->tpl_vars["checked"] = new Smarty_variable("checked", null, 0);?>
            <?php }else{ ?>
              <?php $_smarty_tpl->tpl_vars["checked"] = new Smarty_variable('', null, 0);?>
            <?php }?>
          	<label class="checkbox">
                <input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID'];?>
" id="matchMode<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID'];?>
" shortcut="<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['Shortcut'];?>
" name="<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['Name'];?>
" <?php echo $_smarty_tpl->tpl_vars['checked']->value;?>
> <?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['Name'];?>
 (<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['Shortcut'];?>
) <span class="label t" title="<?php echo $_smarty_tpl->tpl_vars['matchModeCounts']->value[$_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID']];?>
 Player(s) in Queue with this Matchmode"><?php echo $_smarty_tpl->tpl_vars['matchModeCounts']->value[$_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID']];?>
</span> 
            </label>
          <?php }} ?>
          </div>
          <div class="controls span2">
          <?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['it']->step = 1;$_smarty_tpl->tpl_vars['it']->total = (int)ceil(($_smarty_tpl->tpl_vars['it']->step > 0 ? count($_smarty_tpl->tpl_vars['modi']->value)+1 - (($_smarty_tpl->tpl_vars['halfCount']->value+1)) : ($_smarty_tpl->tpl_vars['halfCount']->value+1)-(count($_smarty_tpl->tpl_vars['modi']->value))+1)/abs($_smarty_tpl->tpl_vars['it']->step));
if ($_smarty_tpl->tpl_vars['it']->total > 0){
for ($_smarty_tpl->tpl_vars['it']->value = ($_smarty_tpl->tpl_vars['halfCount']->value+1), $_smarty_tpl->tpl_vars['it']->iteration = 1;$_smarty_tpl->tpl_vars['it']->iteration <= $_smarty_tpl->tpl_vars['it']->total;$_smarty_tpl->tpl_vars['it']->value += $_smarty_tpl->tpl_vars['it']->step, $_smarty_tpl->tpl_vars['it']->iteration++){
$_smarty_tpl->tpl_vars['it']->first = $_smarty_tpl->tpl_vars['it']->iteration == 1;$_smarty_tpl->tpl_vars['it']->last = $_smarty_tpl->tpl_vars['it']->iteration == $_smarty_tpl->tpl_vars['it']->total;?>
          	<?php if ($_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID']!=''){?>
              <?php if ($_COOKIE['singleQueue'][$_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID']]==true){?>
                <?php $_smarty_tpl->tpl_vars["checked"] = new Smarty_variable("checked", null, 0);?>
              <?php }else{ ?>
                <?php $_smarty_tpl->tpl_vars["checked"] = new Smarty_variable('', null, 0);?>
              <?php }?>
            	<label class="checkbox">
                <input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID'];?>
" id="matchMode<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID'];?>
" shortcut="<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['Shortcut'];?>
" name="<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['Name'];?>
" <?php echo $_smarty_tpl->tpl_vars['checked']->value;?>
> <?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['Name'];?>
 (<?php echo $_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['Shortcut'];?>
) <span class="label t" title="<?php echo $_smarty_tpl->tpl_vars['matchModeCounts']->value[$_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID']];?>
 Player(s) in Queue with this Matchmode"><?php echo $_smarty_tpl->tpl_vars['matchModeCounts']->value[$_smarty_tpl->tpl_vars['modi']->value[$_smarty_tpl->tpl_vars['it']->value]['MatchModeID']];?>
</span>
            	</label>
            <?php }?>
          <?php }} ?>
          </div>
         <?php }?>
</div>
  </div>
  <div class="modal-footer">
    <button class="btn btn-primary" onclick="handleMatchModeSelection()">Save selection!</button>
  </div>
</div>
<?php }} ?>